Method and device for providing guidance to street view destination

ABSTRACT

Disclosed is a method and device for providing guidance to a street view destination. The method includes: acquiring a real scenario image of a scenario in which a device is located; determining, according to a current location and a device facing direction of the device, annotated information needing to be displayed; displaying, in the real scenario image, the annotated information needing to be displayed; determining selected annotated information; and displaying detailed information of a street view corresponding to the selected annotated information.

CROSS REFERENCE TO RELATED APPLICATIONS

This is a continuation application of International Patent ApplicationNo. PCT/CN2015/080735, filed on Jun. 4, 2015, which claims priority toChinese Patent Application No. 201410247087.2 filed on Jun. 5, 2014, thedisclosures of which are incorporated by reference herein in theirentirety.

FIELD OF THE TECHNOLOGY

The present disclosure relates to the field of Internet technologies,and in particular, to a method and device for providing guidance to astreet view destination.

BACKGROUND OF THE DISCLOSURE

In some scenarios, guidance to a street view destination is mainlyprovided by means of user search, that is, search for and guidance to adestination are provided according to a keyword entered by a user, orprovided by pushing a topic, that is, various street view topics such asboutique hotels and popular scenic spots are actively pushed to a user,and guidance is provided according to a selection of the user.

In the guiding manner of user search, guidance needs to be providedbased on user input, which is inconvenient for use. In the guidingmanner of topic pushing, a pushed topic may be a topic in which a useris not interested or that is not needed by a user, which may have anundesirable actual effect and is not well targeted.

SUMMARY

Embodiments of the present invention disclose a method and electronicdevice for providing guidance to a street view destination, which canefficiently and conveniently implement guidance to a street viewdestination in a targeted manner.

An aspect of the embodiments of the present invention discloses a methodfor providing guidance to a street view destination, including:

acquiring a real scenario image of a scenario in which a device islocated;

determining, according to a current location and a device facingdirection of the device, annotated information needing to be displayed;and displaying, in the real scenario image, the annotated informationneeding to be displayed; and

determining selected annotated information; and displaying detailedinformation of a street view corresponding to the selected annotatedinformation.

Another aspect of the embodiments of the present invention discloses anelectronic device for providing guidance to a street view destination,including:

an acquiring module, configured to acquire a real scenario image of ascenario in which the device is located;

a first determining module, configured to determine, according to acurrent location and a device facing direction of the device, annotatedinformation needing to be displayed;

a second determining module, configured to determine selected annotatedinformation; and

a display module, configured to display, in the real scenario image, theannotated information needing to be displayed; and display detailedinformation of a street view corresponding to the selected annotatedinformation.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions of the embodiments of the presentinvention more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments or theexisting technology. Apparently, the accompanying drawings in thefollowing description show only some embodiments of the presentinvention, and persons of ordinary skill in the art may still deriveother drawings from these accompanying drawings without creativeefforts.

FIG. 1 is a schematic flowchart of a method for providing guidance to astreet view destination according to an embodiment of the presentinvention;

FIG. 2 is a schematic flowchart of another method for providing guidanceto a street view destination according to an embodiment of the presentinvention;

FIG. 3A is a schematic diagram of acquiring a real scenario image byusing a camera of a mobile phone according to an embodiment of thepresent invention;

FIG. 3B is a schematic diagram of setting a policy for filtering outannotated information according to an embodiment of the presentinvention;

FIG. 3C is a schematic diagram of displaying annotated informationneeding to be displayed and a real scenario image on the display screenof a mobile phone in an overlaid manner by using an augmented realitytechnology according to an embodiment of the present invention;

FIG. 3D is a schematic diagram of displaying a detail page of a streetview corresponding to selected annotated information;

FIG. 4 is a schematic flowchart of another method for providing guidanceto a street view destination according to an embodiment of the presentinvention;

FIG. 5 is a schematic structural diagram of a device for providingguidance to a street view destination according to an embodiment of thepresent invention;

FIG. 6 is a schematic structural diagram of another device for providingguidance to a street view destination according to an embodiment of thepresent invention;

FIG. 7 is a schematic structural diagram of another device for providingguidance to a street view destination according to an embodiment of thepresent invention;

FIG. 8 is a schematic structural diagram of another device for providingguidance to a street view destination according to an embodiment of thepresent invention; and

FIG. 9 is a schematic structural diagram of another device for providingguidance to a street view destination according to an embodiment of thepresent invention.

DESCRIPTION OF EMBODIMENTS

To enable persons skilled in the art to better understand the technicalsolutions provided in embodiments of the present invention, thefollowing briefly describes some technical terminologies involved in thetechnical solutions provided in the embodiments of the presentinvention.

Augmented reality (AR): Virtual objects, scenarios, or system promptinformation generated by a computer is overlaid on a real scenario, soas to augment reality and enhance perception of a user on the realworld. Connection between a user and the real world is not broken, andvirtual objects are displayed before the eyes of the user; therefore,information can be acquired more conveniently, and interaction with anobject becomes more natural.

Spatial positioning and gesture determining technology: It is ensuredthat virtual information overlaid in augmented reality is associatedwith a movement or gesture of a user in spatial positioning. When a userturns or moves, the field of view changes. Accordingly, augmentedinformation generated by a computer changes, and the information isdisplayed in a correct location of the display screen in real time.

The following clearly and completely describes the technical solutionsin the embodiments of the present invention with reference to theaccompanying drawings in the embodiments of the present invention.Apparently, the described embodiments are merely a part rather than allof the embodiments of the present invention. All other embodimentsobtained by persons of ordinary skill in the art based on theembodiments of the present invention without creative efforts shall fallwithin the protection scope of the present disclosure.

Refer to FIG. 1, which is a schematic flowchart of a method forproviding guidance to a street view destination according to anembodiment of the present invention. The method may include.

S101: Acquire a real scenario image of a scenario in which an electronicdevice (hereinafter referred as “device”) is located.

In this embodiment of the present invention, the real image of thescenario in which the device is located may be acquired by using acamera of the device, and the real image is displayed on a displayscreen of the device.

S102: Determine, according to a current location and a device facingdirection of the device, annotated information needing to be displayed.

In this embodiment of the present invention, the current location of thedevice may be determined by using a global positioning system (GPS)positioning apparatus, and the device facing direction of the device maybe determined by using a sensor, where the sensor may include, but isnot limited to, an accelerometer, a gyroscope, an electronic compass,and the like.

Specifically, after the current location and the device facing directionof the device are determined, annotated information corresponding to thecurrent location and the device facing direction of the device may befurther acquired, filtering on the acquired annotated information isperformed according to a preset policy for filtering out annotatedinformation, and it is determined that annotated information obtainedafter the filtering is the annotated information needing to bedisplayed.

When the annotated information corresponding to the current location andthe device facing direction of the device is acquired, an annotatedinformation database may be searched according to the current locationand the device facing direction of the device, so as to acquire thecorresponding annotated information. Annotated information in theannotated information database may be manually collected in advance. Forexample, if the current location of the device is a longitude xx and alatitude xx, and a current facing direction of the device is due north,the annotated information corresponding to the current location and thedevice facing direction of the device may be shopping malls, hotels,cinemas, and the like due north of the location of the longitude xx andthe latitude xx.

After the annotated information corresponding to the current locationand the device facing direction of the device is acquired, filtering onthe acquired annotated information may be performed according to thepreset policy for filtering out annotated information. The policy forfiltering out annotated information may be set by a user in advance. Forexample, filtering may be performed according to types (for example,life services, scenic spots, and shopping) of real scenarioscorresponding to the annotated information. For example, it is set thatonly the life service type (which may be hotels, delicious food,exercise, cinemas, supermarkets/convenience stores, and the like) isdisplayed, or that one or more of only hotels, delicious food, exercise,and the like are displayed. Filtering may also be performed according todistances from real scenarios corresponding to the annotated informationto the current location of the device, for example, within 5 km, 1 km,500 m, and the like. Certainly, filtering may also be performedaccording to other filtering policies, for example, filtering isperformed according to both types and distances.

S103: Display, in the real scenario image, the annotated informationneeding to be displayed.

In this embodiment of the present invention, after the real scenarioimage of the scenario in which the device is located is acquired, andthe annotated information needing to be displayed is determined, theannotated information needing to be displayed may be displayed in thereal scenario image.

Specifically, after the real scenario image of the scenario in which thedevice is located is acquired, and the annotated information needing tobe displayed is determined, the annotated information needing to bedisplayed and the real scenario image may be displayed on the displayscreen of the device in an overlaid manner, which may be specificallyimplemented by using an augmented reality technology.

Preferably, in this embodiment of the present invention, a target areamay be set on the display screen of the device. When the annotatedinformation needing to be displayed and the real scenario image aredisplayed on the display screen of the device in an overlaid manner,annotated information in the target area and a real scenariocorresponding to the annotated information may be displayed in anemphasized manner (for example, highlighted, or displayed by performingmagnification in a proportion).

When the user moves the device, the real scenario image displayed on thedisplay screen of the device changes. Accordingly, a display location inwhich annotated information is displayed on the screen also changes asthe device moves, which may be specifically implemented by using aspatial positioning and gesture determining technology.

It should be noted that in this embodiment of the present invention,when only one piece of annotated information appears in the target area,it is determined that the annotated information is annotated informationin the target area, and the annotated information and a real scenariocorresponding to the annotated information are displayed in anemphasized manner. When multiple pieces of annotated information appearin the target area, one piece of annotated information may be selectedaccording to a preset rule, and it is determined that the annotatedinformation is annotated information in the target area; and theannotated information and a real scenario corresponding to the annotatedinformation are displayed in an emphasized manner. For example,distances from annotated information appearing in the target area to thecenter of the target area may be separately counted, and it isdetermined that annotated information nearest to the central point ofthe target area is the annotated information in the target area.Annotated information with a highest weight may also be selectedaccording to weights of the annotated information (where a weight ofeach annotated information may be preset) appearing in the target area,and it is determined that the annotated information is the annotatedinformation in the target area. One piece of annotated information amongthe annotated information appearing in the target area may also berandomly selected, and it is determined that the annotated informationis the annotated information in the target area. Certainly, it isdetermined in other manners that one piece of annotated informationamong the annotated information appearing in the target area may also bethe annotated information in the target area (for example, a priority ofeach annotated information may be preset, and when multiple pieces ofannotated information appear in the target area, it is determined thatone piece of annotated information with the highest priority is theannotated information in the target area), and a specific manner thereofis not enumerated herein again.

S104: Determine selected annotated information; and display detailedinformation of a street view corresponding to the selected annotatedinformation.

In this embodiment of the present invention, after the annotatedinformation needing to be displayed is displayed in the real scenarioimage, for the selected annotated information, the detailed informationof the street view corresponding to the selected annotated informationmay be displayed.

Specifically, when the target area is set on the display screen of thedevice, the selected annotated information may be determined in at leastthe following manners:

Manner 1: When it is detected that a user clicks on annotatedinformation, it is determined that the annotated information that theuser clicks on is the selected annotated information.

In this manner, the user may send an annotated information selectioninstruction to the device by clicking on the annotated informationdisplayed on the screen, and when it is detected that the user clicks onthe annotated information, it is determined that the annotatedinformation that the user clicks on is the selected annotatedinformation.

Manner 2: When it is detected that a time for which annotatedinformation in a target area stays in the target area exceeds athreshold, it is determined that the annotated information is theselected annotated information.

In this manner, the user may move, to the target area by moving thedevice, the annotated information that the user intends to select, andit is ensured that the time for which the annotated information stays inthe target area exceeds the threshold (which may be preset, and is, forexample, 2 s). When the device detects that the time for which theannotated information in the target area stays in the target areaexceeds the threshold, the device determines that the annotatedinformation in the target area is the selected annotated information.

Manner 3: When it is detected that a user rocks the device, it isdetermined that annotated information in a target area is the selectedannotated information.

In this manner, the user may change annotated information in the targetarea by moving the device, and when the user determines that currentannotated information in the target area is the annotated informationthat the user intends to select, the user may send, to the device byrocking the device, an instruction for selecting the annotatedinformation in the target area. When the device detects that the userrocks the device, the device determines that the annotated informationin the target area is the selected annotated information.

In this manner, the detecting, by the device, that the user rocks thedevice may be specifically: detecting that the user rocks a mobile phoneaccording to a preset rule, which is, for example, that rocking isupward and downward (left and right, or forward and backward) and timesexceed a threshold (or a rocking time exceeds a threshold).

Manner 4: When it is detected by using an eye tracking technology that atime for which a user stays on annotated information exceeds a threshold(which may be preset, and is, for example, 2 s), it is determined thatthe annotated information is the selected annotated information.

In this manner, the user may select the annotated information by gazing,for a time exceeding a preset time, at the annotated information thatthe user intends to select, and when the device detects by using the eyetracking technology that the time for which the user (the eyeballs ofthe user) stays on the annotated information exceeds the threshold, thedevice determines that the annotated information is the selectedannotated information.

Manner 5: When it is detected, by means of speech recognition, annotatedinformation input by a user by using voice, it is determined that theannotated information is the selected annotated information.

In this manner, the user may select, by means of voice input, theannotated information that the user intends to select. When the userintends to select annotated information, the user may directly input theannotated information (that is, read the annotated information) by usingvoice. When the device detects, by means of speech recognition, theannotated information input by the user by using voice, the devicedetermines that the annotated information is the selected annotatedinformation.

In a case in which no target area is set on the display screen of thedevice, the user may also send an annotated information selectioninstruction to the device by clicking on annotated information that theuser intends to select, and when the device detects that the user clickson the annotated information, the device determines that the annotatedinformation that the user clicks on is the selected annotatedinformation. Alternatively, the user may select annotated information bygazing at the annotated information, and when the device detects byusing the eye tracking technology that a time for which the user stayson the annotated information exceeds a threshold, the device determinesthe annotated information as the selected annotated information.Alternatively, the user may also select, by means of voice input,annotated information, and when the device detects the annotatedinformation input by the user by using voice, the device determines thatthe annotated information is the selected annotated information.

In this embodiment of the present invention, after the selectedannotated information is determined, the detailed information of thestreet view corresponding to the selected annotated information may bedisplayed. For example, a detail page of the street view correspondingto the selected annotated information is displayed. The detail page mayinclude, but is not limited to, information such as a street viewthumbnail, address details, a contact number, and a distance (a distancefrom the street view destination to the current location).

The user may view a street view panorama by clicking on the street viewthumbnail on the detail page. Accordingly, the device may display thecorresponding street view panorama when the device detects that the userclicks on the street view thumbnail on the detail page, so that the userbetter views a corresponding street view.

Further, in the technical solution in this embodiment of the presentinvention, a function of planning (navigating) a path to the street viewdestination may be further provided. For example, a “path planning”(“navigation” or “setting as a destination”) option is set on a streetview detail page, and the user may query a plan of a path from thecurrent location to the street view destination by clicking on theoption.

Accordingly, the device may determine an optimal route from the currentlocation to the street view destination when the device receives arequest for planning a path to the street view destination, where theoptimal route may include one or more of an optimal walking route, anoptimal route for a public transportation tool, and an optimal route fora non-public transportation tool.

It should be noted that in the technical solution provided in thisembodiment of the present invention, the annotated information mayinclude, but is not limited to, one or more pieces of information suchas point of interest (POI) information (for example, information such asa street view name, a street view type, a street view longitude, and astreet view latitude), a street view thumbnail, nearby activityinformation (for example, a promotional activity, a concert of a star,and screening of a popular movie), an emergency (for example, a trafficaccident), transportation information (for example, whether a road issmooth, and whether there is traffic control), and a distance. The usercan better select the street view destination according to the annotatedinformation and need of the user.

In this embodiment of the present invention, the device for providingguidance to the street view destination may be a terminal device such asa smart phone, a tablet computer, a personal digital assistant (PDA), ora mobile Internet device (MID) that has a camera.

Referring to FIG. 2, FIG. 2 is a schematic flowchart of a method forproviding guidance to a street view destination according to anembodiment of the present invention. In the method for providingguidance to a street view destination shown in FIG. 2, the technicalsolution provided in this embodiment of the present invention isdescribed by using an example in which a device for providing guidanceto the street view destination is a smart phone (mobile phone for short)with a camera. The method for providing guidance to a street viewdestination shown in FIG. 2 may include the following steps.

S201: Acquire, by using a camera, a real scenario image of a scenario inwhich a device is located.

Referring to FIG. 3A, in this embodiment, a user may acquire imageinformation of a real scenario by using a camera of a mobile phone, anddisplay the image information on the display screen of the mobile phone.

S202: Determine, according to a current location and a device facingdirection of the device, annotated information needing to be displayed.

In this embodiment, a GPS positioning apparatus and a sensor such as anaccelerometer, a gyroscope, or an electronic compass may be disposed inthe mobile phone in advance, so as to acquire a current location and afacing direction of the mobile phone, and further determine, accordingto the current location and the facing direction of the mobile phone,the annotated information needing to be displayed.

The user may set, in a setting interface, the annotated informationneeding to be displayed. For example, it may be set that only annotatedinformation of a life service type is displayed, it may be set that onlyannotated information of a street view within 500 m from the currentlocation is displayed, or the like. For a schematic diagram, referencemay be made to FIG. 3B.

S203: Display the annotated information needing to be displayed and thereal scenario image on the display screen of the device in an overlaidmanner.

Referring to FIG. 3C, in this embodiment, the annotated informationneeding to be displayed and the real scenario image may be displayed onthe screen of the mobile phone in an overlaid manner by using anaugmented reality technology. A target area is set on the screen of themobile phone, and annotated information in the target area and a realscenario corresponding to the annotated information are highlighted.

It should be noted that after the annotated information needing to bedisplayed and the real scenario image are displayed on the displayscreen of the device in an overlaid manner, the annotated informationdisplayed on the screen may be further filtered according to setting ofthe user, and for a filtering policy thereof, reference may be made tothe policy for filtering out annotated information described in stepS102.

S204: When it is detected that a time for which annotated information ina target area stays in the target area exceeds a threshold, determinethat the annotated information is selected annotated information.

In this embodiment, the selected annotated information is determined ina manner in which when it is detected that the time for which theannotated information in the target area stays in the target areaexceeds the threshold, it is determined that the annotated informationis the selected annotated information. Assuming that the threshold isset to 2 s, when the mobile phone detects that annotated informationenters the target area, and the time for which the annotated informationin the target area stays in the target area exceeds 2 s, it isdetermined that the annotated information is the selected annotatedinformation.

S205: Display a detail page of a street view corresponding to theselected annotated information.

Referring to FIG. 3D, in this embodiment, after the selected annotatedinformation is determined, the detail page of the street viewcorresponding to the selected annotated information may be displayed onthe screen. The detail page may include information such as a streetview thumbnail, address details, and a contact number, and the detailpage includes a “setting as a destination” option. The user can view anoptimal route from the current location to the street view destinationby clicking on the “setting as a destination” option, where the optimalroute may include an optimal walking route, an optimal route for apublic transportation tool (for example, a bus or a subway), and anoptimal route for a non-public transportation tool (for example, aself-driving car or a bicycle).

Refer to FIG. 4, which is a schematic flowchart of another method forproviding guidance to a street view destination according to anembodiment of the present invention. The method may include thefollowing steps.

S401: Acquire, by using a camera, a real scenario image of a scenario inwhich a device is located.

S402: Determine a current location of the device by using a GPSpositioning apparatus, and determine a facing direction of the device byusing a direction sensor.

S403: Determine, according to the current location and the device facingdirection of the device, annotated information needing to be displayed.

In this embodiment of the present invention, after annotated informationcorresponding to the current location and the device facing direction ofthe device is acquired, filtering on the annotated information may beperformed according to a policy (where filtering may be performedaccording to types and/or distances), set by a user, for filtering outannotated information, and it is determined that annotated informationobtained after the filtering is the annotated information needing to bedisplayed.

S404: Display the annotated information needing to be displayed and thereal scenario image on the display screen of the device in an overlaidmanner.

In this embodiment, the annotated information and the real scenarioimage may be displayed on the screen of the device by using an augmentedreality technology.

S405: When an operation that a user clicks on annotated information isdetected, determine that the clicked annotated information is selectedannotated information.

S406: Display a detail page of a street view corresponding to theselected annotated information.

The detail page includes a “path planning” option. The user can view anoptimal route from the current location to the street view destinationby clicking on the “path planning” option.

S407: When a path planning request is received, display an optimal routefrom the current location to a street view destination.

The optimal route includes one or more of an optimal walking route, anoptimal route for a public transportation tool, and an optimal route fora non-public transportation tool.

Based on the same technical idea as that in the foregoing methodembodiments, an embodiment of the present invention further provides adevice for providing guidance to a street view destination, where thedevice is applicable to the foregoing method embodiments.

Refer to FIG. 5, which is a schematic structural diagram of a device forproviding guidance to a street view destination according to anembodiment of the present invention. The device may include:

an acquiring module 51, configured to acquire a real scenario image of ascenario in which the device is located;

a first determining module 52, configured to determine, according to acurrent location and a device facing direction of the device, annotatedinformation needing to be displayed;

a second determining module 53, configured to determine selectedannotated information; and

a display module 54, configured to display, in the real scenario image,the annotated information needing to be displayed; and display detailedinformation of a street view corresponding to the selected annotatedinformation.

The acquiring module 51 may be configured to acquire, by using a cameraof the device, the real scenario image of the scenario in which thedevice is located.

The display module 54 may be configured to display the annotatedinformation needing to be displayed and the real scenario image on thedisplay screen of the device in an overlaid manner.

When a target area is set on the display screen of the device:

the display module 54 may be further configured to: when annotatedinformation appears in the target area, display in an emphasized manner(for example, highlighted, or displayed by performing magnification in aproportion) the annotated information and a real scenario correspondingto the annotated information.

Accordingly, the second determining module 53 may be configured todetermine, when it is detected that a user clicks on annotatedinformation, the annotated information that the user clicks on as theselected annotated information; or determine, when it is detected that atime for which annotated information in a target area stays in thetarget area exceeds a threshold, the annotated information as theselected annotated information; or determine, when it is detected that auser rocks the device, annotated information in a target area as theselected annotated information; or determine, when it is detected byusing an eye tracking technology that a time for which a user stays onannotated information exceeds a threshold, the annotated information asthe selected annotated information; or determine, when annotatedinformation input by a user by using voice is detected, the annotatedinformation as the selected annotated information.

The display module 54 may be configured to display a detail page of astreet view corresponding to the selected annotated information.

The detail page includes: a street view thumbnail, address details, acontact number, and a distance.

The display module 54 may be further configured to display acorresponding street view panorama when it is detected that a userclicks on the street view thumbnail on the detail page.

The annotated information includes one or more pieces of the following:point of interest (POI) information (for example, information such as astreet view name, a street view type, a street view longitude, and astreet view latitude), a street view thumbnail, nearby activityinformation (for example, a promotional activity, a concert of a star,and screening of a popular movie), an emergency (for example, a trafficaccident), transportation information (for example, whether a road issmooth, and whether there is traffic control), and a distance.

Refer to FIG. 6, which is a schematic structural diagram of anotherdevice for providing guidance to a street view destination according toan embodiment of the present invention. The device may include:

an acquiring module 61, configured to acquire a real scenario image of ascenario in which the device is located;

a third determining module 62, configured to determine a currentlocation and a device facing direction of the device;

a first determining module 63, configured to determine, according to thecurrent location and the device facing direction of the device,annotated information needing to be displayed;

a second determining module 64, configured to determine selectedannotated information; and

a display module 65, configured to display, in the real scenario image,the annotated information needing to be displayed; and display detailedinformation of a street view corresponding to the selected annotatedinformation.

The third determining module may be configured to determine the currentlocation of the device by using a global positioning system (GPS)positioning apparatus, and/or determine the device facing direction ofthe device by using a sensor, where the sensor includes anaccelerometer, a gyroscope, and an electronic compass.

The annotated information includes one or more pieces of the following:point of interest (POI) information (for example, information such as astreet view name, a street view type, a street view longitude, and astreet view latitude), a street view thumbnail, nearby activityinformation (for example, a promotional activity, a concert of a star,and screening of a popular movie), an emergency (for example, a trafficaccident), transportation information (for example, whether a road issmooth, and whether there is traffic control), and a distance.

Refer to FIG. 7, which is a schematic structural diagram of anotherdevice for providing guidance to a street view destination according toan embodiment of the present invention. The device may include:

an acquiring module 71, configured to acquire a real scenario image of ascenario in which the device is located;

a first determining module 72, configured to determine, according to thecurrent location and the device facing direction of the device,annotated information needing to be displayed;

a second determining module 73, configured to determine selectedannotated information; and

a display module 74, configured to display, in the real scenario image,the annotated information needing to be displayed; and display detailedinformation of a street view corresponding to the selected annotatedinformation.

The first determining module 72 may include:

an acquiring unit 721, configured to acquire annotated informationcorresponding to the current location and the device facing direction ofthe device;

a filtering unit 722, configured to perform filtering on the acquiredannotated information according to a policy for filtering out annotatedinformation; and

a determining unit 723, configured to determine that annotatedinformation obtained after the filtering is the annotated informationneeding to be displayed.

The filtering unit 722 may be configured to perform filtering on theacquired annotated information according to types (for example, lifeservices, scenic spots, and shopping) of real scenarios corresponding tothe annotated information, and/or perform filtering on the acquiredannotated information according to distances (for example, within 2 km,1 km, or 500 m) from real scenarios corresponding to the annotatedinformation to the current location of the device.

The annotated information includes one or more pieces of the following:point of interest (POI) information (for example, information such as astreet view name, a street view type, a street view longitude, and astreet view latitude), a street view thumbnail, nearby activityinformation (for example, a promotional activity, a concert of a star,and screening of a popular movie), an emergency (for example, a trafficaccident), transportation information (for example, whether a road issmooth, and whether there is traffic control), and a distance.

Refer to FIG. 8, which is a schematic structural diagram of anotherdevice for providing guidance to a street view destination according toan embodiment of the present invention. The device may include:

an acquiring module 81, configured to acquire a real scenario image of ascenario in which the device is located;

a first determining module 82, configured to determine, according to thecurrent location and the device facing direction of the device,annotated information needing to be displayed;

a second determining module 83, configured to determine selectedannotated information; and

a display module 84, configured to display, in the real scenario image,the annotated information needing to be displayed; and display detailedinformation of a street view corresponding to the selected annotatedinformation.

When a target area is set on the display screen of the device:

the display module 84 may be further configured to: when annotatedinformation appears in the target area, display in an emphasized manner(for example, highlighted, or displayed by performing magnification in aproportion) the annotated information and a real scenario correspondingto the annotated information.

Accordingly, the second determining module 83 may be configured todetermine, when it is detected that a user clicks on annotatedinformation, that the annotated information that the user clicks on isthe selected annotated information; or determine, when it is detectedthat a time for which annotated information in a target area stays inthe target area exceeds a threshold, that the annotated information isthe selected annotated information; or determine, when it is detectedthat a user rocks the device, that annotated information in a targetarea is the selected annotated information; or determine, when it isdetected by using an eye tracking technology that a time for which auser stays on annotated information exceeds a threshold, that theannotated information is the selected annotated information; ordetermine, when annotated information input by a user by using voice isdetected, that the annotated information is the selected annotatedinformation.

Accordingly, the device for providing guidance to a street viewdestination provided in this embodiment of the present invention mayfurther include:

a fourth determining module 85, configured to select, when more than onepiece of annotated information appears in a target area, one piece ofannotated information according to a preset rule, and determine that theone piece of annotated information is annotated information in thetarget area.

The fourth determining module 85 may be configured to determine thatannotated information nearest to the central point of the target area isthe annotated information in the target area; or select annotatedinformation with a highest weight according to weights of the annotatedinformation appearing in the target area, and determine that theannotated information is the annotated information in the target area;or randomly select one piece of annotated information, and determinethat the one piece of annotated information is the annotated informationin the target area.

The annotated information includes one or more pieces of the following:point of interest (POI) information (for example, information such as astreet view name, a street view type, a street view longitude, and astreet view latitude), a street view thumbnail, nearby activityinformation (for example, a promotional activity, a concert of a star,and screening of a popular movie), an emergency (for example, a trafficaccident), transportation information (for example, whether a road issmooth, and whether there is traffic control), and a distance.

Refer to FIG. 9, which is a schematic structural diagram of anotherdevice for providing guidance to a street view destination according toan embodiment of the present invention. The device may include:

an acquiring module 91, configured to acquire a real scenario image of ascenario in which the device is located;

a first determining module 92, configured to determine, according to thecurrent location and the device facing direction of the device,annotated information needing to be displayed;

a second determining module 93, configured to determine selectedannotated information; and

a display module 94, configured to display, in the real scenario image,the annotated information needing to be displayed; and display detailedinformation of a street view corresponding to the selected annotatedinformation.

The display module 94 may be configured to display a detail page of astreet view corresponding to the selected annotated information.

The detail page includes: a street view thumbnail, address details, acontact number, and a distance.

Accordingly, the display module 94 may be further configured to displaya corresponding street view panorama when it is detected that a userclicks on the street view thumbnail on the detail page.

Accordingly, the device for providing guidance to a street viewdestination provided in this embodiment of the present invention mayfurther include:

a navigation module 95, configured to determine an optimal route fromthe current location to the street view destination when a request forplanning a path to the street view destination is received, where theoptimal route includes one or more of the following: an optimal walkingroute, an optimal route for a public transportation tool, and an optimalroute for a non-public transportation tool.

The annotated information includes one or more pieces of the following:point of interest (POI) information (for example, information such as astreet view name, a street view type, a street view longitude, and astreet view latitude), a street view thumbnail, nearby activityinformation (for example, a promotional activity, a concert of a star,and screening of a popular movie), an emergency (for example, a trafficaccident), transportation information (for example, whether a road issmooth, and whether there is traffic control), and a distance.

It can be known from the foregoing description that in the technicalsolutions provided in the embodiments of the present invention, asolution for providing guidance to a street view destination isprovided, where the solution has a more real visual effect and morescenario information. A user can intuitively compare displayed annotatedinformation and a real scenario in front of a device, so as to find adestination street view. Because the destination street view isdetermined with reference to a current location and facing directioninformation of the device and a selection of the user, the destinationstreet view better caters for actual need of the user, and street viewguidance becomes more convenient, efficient, and targeted.

Persons of ordinary skill in the art may understand that all or a partof the processes of the methods in the embodiments may be implemented bya computer program instructing relevant hardware. The program may bestored in a computer readable storage medium and executed by one or moreprocessors. When the program runs, the processes of the foregoing methodembodiments are performed. The storage medium may include: a magneticdisk, an optical disc, a read-only memory (ROM), a random access memory(RAM), and the like.

The contents disclosed above are merely preferred embodiments of thepresent invention, but not intended to limit the scope of presentdisclosure. Persons of ordinary skill in the art can understand all or apart of the procedures for implementing the foregoing embodiments, andany equivalent variation made by them according to the claims of thepresent disclosure shall still fall within the scope of the presentdisclosure.

What is claimed is:
 1. A method for providing guidance to a street viewdestination performed at an electronic device having one or moreprocessors and a memory for storing programs to be executed by theprocessors, comprising: acquiring a real scenario image of a scenario inwhich a device is located; determining a current location and a devicefacing direction of the device; determining, according to the currentlocation and the device facing direction of the device, annotatedinformation needing to be displayed; displaying, in the real scenarioimage, the annotated information needing to be displayed; determiningselected annotated information; displaying a detail page of a streetview corresponding to the selected annotated information, wherein thedetail page comprises a street view thumbnail; and displaying acorresponding street view panorama when it is detected that a userclicks on the street view thumbnail on the detail page.
 2. The methodaccording to claim 1, wherein the acquiring a real scenario image of ascenario in which a device is located comprises: acquiring, by using acamera of the device, the real scenario image of the scenario in whichthe device is located.
 3. The method according to claim 1, wherein thecurrent location of the device is determined by using a globalpositioning system (GPS) positioning apparatus, and the device facingdirection of the device is determined by using a sensor, wherein thesensor comprises one or more of an accelerometer, a gyroscope, and anelectronic compass.
 4. The method according to claim 1, wherein thedetermining, according to the current location and the device facingdirection of the device, annotated information needing to be displayedcomprises: acquiring annotated information corresponding to the currentlocation and the device facing direction of the device; performingfiltering on the acquired annotated information according to a policyfor filtering out annotated information; and determining that annotatedinformation obtained after the filtering is the annotated informationneeding to be displayed.
 5. The method according to claim 4, wherein theperforming filtering on the acquired annotated information according toa policy for filtering out annotated information comprises: performingfiltering on the acquired annotated information according to types ofreal scenarios corresponding to the annotated information; and/orperforming filtering on the acquired annotated information according todistances from real scenarios corresponding to the annotated informationto the current location of the device.
 6. The method according to claim1, wherein the displaying, in the real scenario image, the annotatedinformation needing to be displayed comprises: displaying the annotatedinformation needing to be displayed and the real scenario image on thedisplay screen of the device in an overlaid manner.
 7. The methodaccording to claim 6, wherein when a target area is set on the displayscreen of the device, the method further comprises: displaying, in anemphasized manner, annotated information in the target area and a realscenario corresponding to the annotated information.
 8. The methodaccording to claim 1, wherein the determining selected annotatedinformation comprises: determining, when it is detected that a userclicks on annotated information, the annotated information that the userclicks on as the selected annotated information.
 9. The method accordingto claim 1, wherein the determining selected annotated informationcomprises: determining, when it is detected that a time for whichannotated information in a target area stays in the target area exceedsa threshold, that the annotated information is the selected annotatedinformation.
 10. The method according to claim 1, wherein thedetermining selected annotated information comprises: determining, whenit is detected that a user rocks the device, that annotated informationin a target area is the selected annotated information.
 11. The methodaccording to claim 1, wherein the determining selected annotatedinformation comprises: determining, when it is detected by using an eyetracking technology that a time for which a user stays on annotatedinformation exceeds a threshold, that the annotated information is theselected annotated information.
 12. The method according to claim 1,wherein the determining selected annotated information comprises:determining, when annotated information input by a user by using voiceis detected, that the annotated information is the selected annotatedinformation.
 13. The method according to claim 1, wherein the methodfurther comprises: selecting one piece of annotated informationaccording to a preset rule when more than one piece of annotatedinformation appears in a target area, and determining that the one pieceof annotated information is annotated information in the target area.14. The method according to claim 13, wherein the selecting one piece ofannotated information according to a preset rule, and determining thatthe one piece of annotated information is annotated information in thetarget area comprises: determining that annotated information nearest tothe central point of the target area is the annotated information in thetarget area.
 15. The method according to claim 13, wherein the selectingone piece of annotated information according to a preset rule, anddetermining that the one piece of annotated information is annotatedinformation in the target area comprises: selecting annotatedinformation with a highest weight according to weights of the annotatedinformation appearing in the target area, and determining that theannotated information is the annotated information in the target area.16. The method according to claim 13, wherein the selecting one piece ofannotated information according to a preset rule, and determining thatthe one piece of annotated information is annotated information in thetarget area comprises: randomly selecting one piece of annotatedinformation, and determining that the one piece of annotated informationis the annotated information in the target area.
 17. The methodaccording to claim 1, wherein the detail page further comprises: addressdetails, a contact number, and a distance.
 18. The method according toclaim 17, after the displaying detailed information of a street viewcorresponding to the selected annotated information, further comprising:determining an optimal route from the current location to the streetview destination when a request for planning a path to the street viewdestination is received, wherein the optimal route comprises one or moreof the following: an optimal walking route, an optimal route for apublic transportation tool, and an optimal route for a non-publictransportation tool.
 19. The method according to claim 1, wherein theannotated information comprises one or more of the following: point ofinterest (POI) information, a street view thumbnail, nearby activityinformation, an emergency, transportation information, and a distance.20. An electronic device for providing guidance to a street viewdestination, comprising: one or more processors; memory; and one or moreprograms stored in the memory and to be executed by the processors, theprograms further including instructions for: acquiring a real scenarioimage of a scenario in which a device is located; determining a currentlocation and a device facing direction of the device; determining,according to the current location and the device facing direction of thedevice, annotated information needing to be displayed; displaying, inthe real scenario image, the annotated information needing to bedisplayed; determining selected annotated information; displaying adetail page of a street view corresponding to the selected annotatedinformation, wherein the detail page comprises a street view thumbnail;and displaying a corresponding street view panorama when it is detectedthat a user clicks on the street view thumbnail on the detail page.